Skip to content

connection.dsn shows password for uri format dsn #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yamagoya opened this issue Mar 14, 2017 · 1 comment
Closed

connection.dsn shows password for uri format dsn #528

yamagoya opened this issue Mar 14, 2017 · 1 comment
Milestone

Comments

@yamagoya
Copy link

The connection.dsn string occludes the password when connection is made with a dsn but not when a connection is made with a URI:

>>> dbconn=connect ('dbname=dev user=yama password=secret')
>>> dbconn.dsn
'dbname=dev user=yama password=xxxxxx'
>>> dbconn=connect ('postgres://yama:secret@localhost/dev')
>>> dbconn.dsn
'postgres://yama:secret@localhost/dev'

Shouldn't it also be occluded in the URI case?

@dvarrazzo dvarrazzo added this to the 2.7.2 milestone Mar 15, 2017
@dvarrazzo
Copy link
Member

I guess so

dvarrazzo added a commit that referenced this issue Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants